Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Ogmios connection errors #43

Merged
merged 7 commits into from
Sep 27, 2024
Merged

Fix Ogmios connection errors #43

merged 7 commits into from
Sep 27, 2024

Conversation

caike
Copy link
Member

@caike caike commented Sep 18, 2024

The errors would take place when there were issues with the underlying Cardano node - typically when the node is still starting and not yet fully synced. The Ogmios service is able to start and receive connections but the handshake is never completed and the client errors out when trying to send frames.

With this fix, Xogmios now displays errors/warnings for the following:

  • Node is still starting up and no socket file is yet available
[error] Ogmios reported error: Ogmios service error. Cardano Node not ready.
Trying reconnection in 5 seconds.
  • Socket file is available but node is still syncing with the network
[warning] Cardano Node not ready. Network sync progress at 62.881% Trying reconnection in 5 seconds.
[warning] Cardano Node not ready. Network sync progress at 62.883% Trying reconnection in 5 seconds.

Fixes #42

This error would take place when the Ogmios service is started
with an invalid socket file. The Ogmios service is able to start and
receive connections but the handshake is never completed and the client
errors out when trying to send frames.

The fix was added to the underlying websocket_client library and this
commit simply updates Xogmios to point to the patched version.
@caike caike marked this pull request as ready for review September 18, 2024 21:45
@caike caike changed the title Fix Ogmios connection error Fix Ogmios connection errors Sep 25, 2024
lib/xogmios/health_check.ex Outdated Show resolved Hide resolved
@caike caike merged commit f75902b into main Sep 27, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect behavior with not fully synced Ogmios
1 participant